﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Data.Entity
{
    public class Menu 
    {
        

        [Key]
        public int ID { get; set; }

        [StringLength(255, MinimumLength = 6)]
        [Required()]
        public string Name { get; set; }

        [StringLength(1000, MinimumLength = 6)]
        [Required()]
        public string Description { get; set; }

        public Boolean IsDelete { get; set; }

        public Boolean IsStatus { get; set; }

        public Boolean IsGroup { get; set; }

        private DateTime _CreateDate = DateTime.Now;
        public DateTime CreateDate { get { return _CreateDate; } set { _CreateDate = value; } }


        private DateTime _UpdateDate = DateTime.Now;
        public DateTime UpdateDate { get { return _UpdateDate; } set { _UpdateDate = value; } }

        public int? UpdateUser { get; set; }

        private DateTime _DeleteDate = DateTime.Now;
        public DateTime DeleteDate { get { return _DeleteDate; } set { _DeleteDate = value; } }

        public int? DeleteUser { get; set; }


    }
}
